package ntd.util.modular.msg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import ntd.util.config.common.enums.msg.EnumMsgHandle;
import ntd.util.config.common.entity.BaseEntityMybatis;
import ntd.util.config.common.enums.msg.EnumMsgState;
import com.c.Constant;



@EqualsAndHashCode(callSuper = true)
@TableName("message_msg")
@Data
@Schema(description = "统一消息中心 - 消息实体")
public class Msg extends BaseEntityMybatis<Msg> {

    @Schema(description = "渠道商id")
    private String channelBusinessId;
    @Schema(description = "发件人")
    private String sender;
    @Schema(description = "收件人")
    private String receiverJson = Constant.JSON_OBJECT_DEFAULT;
    @Schema(description = "消息标题")
    private String title;
    @Schema(description = "外链")
    private String link;
    @Schema(description = "消息内容")
    private String content;
    @Schema(description = "自定义参数")
    private String dataJson = Constant.JSON_OBJECT_DEFAULT;
    @Schema(description = "状态", title = "0：待发送，1：发送成功，2：发送失败")
    private EnumMsgState state = EnumMsgState.WAIT_SEND;
    @Schema(description = "消息类型")
    private EnumMsgHandle enumMsgHandle;

}
